Optimal. Leaf size=288 \[ -\frac{\left (A \left (b^2-2 a c\right )-a b C\right ) \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{2 a^2 \sqrt{b^2-4 a c}}+\frac{(A b-a C) \log \left (a+b x^2+c x^4\right )}{4 a^2}-\frac{\log (x) (A b-a C)}{a^2}-\frac{A}{2 a x^2}-\frac{B \sqrt{c} \left (\frac{b}{\sqrt{b^2-4 a c}}+1\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} a \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{B \sqrt{c} \left (1-\frac{b}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} a \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{B}{a x} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 1.10163, antiderivative size = 288, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 11, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.393 \[ -\frac{\left (A \left (b^2-2 a c\right )-a b C\right ) \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{2 a^2 \sqrt{b^2-4 a c}}+\frac{(A b-a C) \log \left (a+b x^2+c x^4\right )}{4 a^2}-\frac{\log (x) (A b-a C)}{a^2}-\frac{A}{2 a x^2}-\frac{B \sqrt{c} \left (\frac{b}{\sqrt{b^2-4 a c}}+1\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} a \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{B \sqrt{c} \left (1-\frac{b}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} a \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{B}{a x} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x + C*x^2)/(x^3*(a + b*x^2 + c*x^4)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 117.703, size = 287, normalized size = 1. \[ - \frac{A}{2 a x^{2}} + \frac{\sqrt{2} B \sqrt{c} \left (b - \sqrt{- 4 a c + b^{2}}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b + \sqrt{- 4 a c + b^{2}}}} \right )}}{2 a \sqrt{b + \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} - \frac{\sqrt{2} B \sqrt{c} \left (b + \sqrt{- 4 a c + b^{2}}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b - \sqrt{- 4 a c + b^{2}}}} \right )}}{2 a \sqrt{b - \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} - \frac{B}{a x} - \frac{\left (A b - C a\right ) \log{\left (x^{2} \right )}}{2 a^{2}} + \frac{\left (A b - C a\right ) \log{\left (a + b x^{2} + c x^{4} \right )}}{4 a^{2}} - \frac{\left (- 2 A a c + A b^{2} - C a b\right ) \operatorname{atanh}{\left (\frac{b + 2 c x^{2}}{\sqrt{- 4 a c + b^{2}}} \right )}}{2 a^{2} \sqrt{- 4 a c + b^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((C*x**2+B*x+A)/x**3/(c*x**4+b*x**2+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 1.95423, size = 377, normalized size = 1.31 \[ \frac{\frac{\left (A \left (b \sqrt{b^2-4 a c}-2 a c+b^2\right )-a C \left (\sqrt{b^2-4 a c}+b\right )\right ) \log \left (\sqrt{b^2-4 a c}-b-2 c x^2\right )}{\sqrt{b^2-4 a c}}+\frac{\left (A \left (b \sqrt{b^2-4 a c}+2 a c-b^2\right )+a C \left (b-\sqrt{b^2-4 a c}\right )\right ) \log \left (\sqrt{b^2-4 a c}+b+2 c x^2\right )}{\sqrt{b^2-4 a c}}+4 \log (x) (a C-A b)-\frac{2 a A}{x^2}-\frac{2 \sqrt{2} a B \sqrt{c} \left (\sqrt{b^2-4 a c}+b\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{b^2-4 a c} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{2 \sqrt{2} a B \sqrt{c} \left (\sqrt{b^2-4 a c}-b\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{b^2-4 a c} \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{4 a B}{x}}{4 a^2} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x + C*x^2)/(x^3*(a + b*x^2 + c*x^4)),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.057, size = 1054, normalized size = 3.7 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((C*x^2+B*x+A)/x^3/(c*x^4+b*x^2+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \frac{{\left (C a - A b\right )} \log \left (x\right )}{a^{2}} + \frac{-\int \frac{B a c x^{2} +{\left (C a - A b\right )} c x^{3} + B a b +{\left (C a b - A b^{2} + A a c\right )} x}{c x^{4} + b x^{2} + a}\,{d x}}{a^{2}} - \frac{2 \, B x + A}{2 \, a x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)/((c*x^4 + b*x^2 + a)*x^3),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)/((c*x^4 + b*x^2 + a)*x^3),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x**2+B*x+A)/x**3/(c*x**4+b*x**2+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 1.29313, size = 1, normalized size = 0. \[ \mathit{Done} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)/((c*x^4 + b*x^2 + a)*x^3),x, algorithm="giac")
[Out]